public class User {
    String name;
    int age;
    String ID;

    public User() {
    }

    public User(String name, int age, String ID) {
        this.name = name;
        this.age = age;
        this.ID = ID;
    }

    public double getMoney(double money1,double money2)
    {
        System.out.println("取款成功" + "  余" + (money2-money1));
        return money2-money1;
    }

    public double setMoney(double money1,double money2)
    {
        System.out.println("存款成功" + "  余" + (money1+money2));
        return money1+money2;
    }

}
